import Vue from "vue";
import App from "./App";
Vue.prototype.$onoff = true;
Vue.config.productionTip = false;
// 注入全局方法

import "./util/index";
// 引入全局组件
import xlNavBar from "./components/xlNavBar";
import xlTabBar from "./components/xlTabBar";
import store from "./store"; // 引入 Vuex Store

Vue.component("xlNavBar", xlNavBar);
Vue.component("xlTabBar", xlTabBar);

App.mpType = "app";
// / main.js，注意要在use方法之后执行
import uView from "uview-ui";
import {
  methods
} from "uview-ui/libs/mixin/mixin";
Vue.use(uView);
// 如此配置即可
// uni.$u.config.unit = "rem";
const app = new Vue({
  store, // 将 Vuex Store 实例化对象全局化
  ...App,
});
app.$mount();